#ifndef AISDOCVIEW_H
#define AISDOCVIEW_H

#include <QWidget>

class AISDocDataSource;

class AISDocView : public QWidget
{
    Q_OBJECT
public:
    enum DocumentType
    {
        DT_UNKNOWN = 0,
        DT_TXT,
        DT_WORD,
        DT_PPT,
        DT_EXCEL,
        DT_PDF
    };

    explicit AISDocView(QWidget *parent = 0);
    bool newFile(const QString &filePath);
    bool loadFile(const QString &filePath);
    DocumentType getDocumentType();
    QString getCurrentFilePath();

    virtual QString getContentText();

signals:

public slots:

private:
    QString curFilePath;
    QWidget *curDocView;
    AISDocDataSource *dataSource;
};

#endif // AISDOCVIEW_H
